package com.ctp.bean.constants;

import java.util.HashSet;
import java.util.ResourceBundle;

public class ServerParams {

	private static final ResourceBundle RB = ResourceBundle.getBundle("server");

	public static final String DIRECTORY = RB.getString("DIRECTORY");

	public static final String BROKER_ID = RB.getString("BROKER_ID");

	public static final String USER_ID = RB.getString("USER_ID");

	public static final String PASSWORD = RB.getString("PASSWORD");

	public static final String MD_FRONT_ADDR = RB.getString("MD_FRONT_ADDR");

	public static final String TD_FRONT_ADDR = RB.getString("TD_FRONT_ADDR");

	public static final HashSet<String> INSTRUMENTS = new HashSet<String>();

	static {
		for (String instrumentID : RB.getString("INSTRUMENTS").split(";")) {
			INSTRUMENTS.add(instrumentID.toLowerCase());
		}
	}

}
